"""
-*- coding: utf-8 -*-

@author: Du Changping
@time: 2021/12/6 10:30
@file name: set_para_and_gene_files
@software：PyCharm

Do not smash your computer!

"""

import time
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt


if __name__ == "__main__":
    time_stamp = time.strftime("%m_%d_%H_%M_%S", time.localtime())

    """set projection files path """  # todo
    input_dir = "./sgm"
    output_dir = "./rec"+time_stamp
    reco_dir = "./output"+time_stamp

    """set sinogram and slice parameters"""  # todo
    # number of detector elements
    SinogramWidth = 400
    # number of frames
    SinogramHeight = 360
    # number of views for reconstruction
    Views = 360
    # number of slices in each sinogram file
    SliceCount = 1
    # the physical size of detector element size[mm]
    DetectorElementSize = 0.5

    """geometry and detector parameters"""  # todo
    # source to iso-center distance[mm]
    SourceIsocenterDistance = 10000
    # source to detector distance[mm]
    SourceDetectorDistance = 10000

    # number of detector elements
    DetectorElementCount = 400
    # number of views for reconstruction
    Views = 360

    # the physical size of detector element size [mm]

    # f_ = open()
    print(2)
